וַיַּ֤ךְ לֵב־דָּוִד֙ אֹת֔וֹ אַחֲרֵי־כֵ֖ן סָפַ֣ר אֶת־הָעָ֑ם (ס) וַיֹּ֨אמֶר דָּוִ֜ד אֶל־יְהוָ֗ה חָטָ֤אתִי מְאֹד֙ אֲשֶׁ֣ר עָשִׂ֔יתִי וְעַתָּ֣ה יְהוָ֔ה הַֽעֲבֶר־נָא֙ אֶת־עֲוֺ֣ן עַבְדְּךָ֔ כִּ֥י נִסְכַּ֖לְתִּי מְאֹֽד׃
And David’s heart smote him after that he had numbered the people. And David said unto the LORD: ‘I have sinned greatly in what I have done; but now, O LORD, put away, I beseech Thee, the iniquity of Thy servant; for I have done very foolishly.’
Read Kabbalistic (mystical) interpretations of II Samuel 24:10: Zohar and classical Jewish mystical sources, free online.